<!--
Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="ct-builder.html">

<polymer-element name="ct-builder-failure-card" attributes="group" noscript>
  <template>
    <style>
      :host {
        display: block;
      }
      div {
        margin-bottom: 10px;
      }
    </style>
    <div>
      <ct-builder builder="{{ group.builder }}"></ct-builder>
      {{ group.failure.state == 'building' ? 'running' : group.failure.state }}
      for {{ group.failure.hoursSinceLastUpdate }} hours.
    </div>
    <div>
      {{ group.failure.pendingBuilds }} pending builds.
    </div>
  </template>
</polymer-element>


